package dk.dlug.platform.model;


import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class DefaultModel {
	
	@Inject
	@Named("sqlMapClientTemplate")
	private SqlMapClientTemplate sqlMapClientTemplate;
	
	public String test(){
		System.out.println("test");
		return null;
	}
	
	public List getList(){
		
		return sqlMapClientTemplate.queryForList("getList");
	}

	public SqlMapClientTemplate getSqlMapClientTemplate() {
		return sqlMapClientTemplate;
	}

	public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) {
		this.sqlMapClientTemplate = sqlMapClientTemplate;
	}
	
	
}
